package com.maolong.fenkufenbiaotest.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.maolong.fenkufenbiaotest.mapper.ProdDetailMapper;
import com.maolong.fenkufenbiaotest.mapper.UserMapper;
import com.maolong.fenkufenbiaotest.pojo.ProdDetail;
import com.maolong.fenkufenbiaotest.pojo.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Date;
import java.util.List;

@Service
public class UserService {

    @Autowired
    private UserMapper userMapper;

    public List<User> selectAll() {

        return userMapper.selectList(null);

    }

    public void addUser(User user) {
        userMapper.insert(user);
    }

}